package com.design.pattern.templateMethod;

public abstract class CaffeineBeverage {
	void preparedBeverage(){
		boilWater();
		brew();
		pourInCup();
		if(wantsCondiments()){
			addCondiments();
		}
	}
	abstract void brew();
	
	abstract void addCondiments();
	
	void boilWater(){
		System.out.println("Boil Water");
	}
	
	void pourInCup(){
		System.out.println("Pour In Cup");
	}

	boolean wantsCondiments(){
		System.out.println("Wants Condiments");
		return true;
	}
}
